package com.zbkj.common.model.water;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("rz_package")
@ApiModel("选购套餐表")
public class RzPackage {
    
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键ID", example = "1")
    private Integer id;
    
    @ApiModelProperty(value = "套餐名称", example = "基础套餐")
    private String name;
    
    @ApiModelProperty(value = "套餐价格", example = "99.99")
    private BigDecimal price;
    
    @ApiModelProperty(value = "套餐类型：0-默认 1-月卡/季卡/半年卡/年卡", example = "0")
    private Integer type;
    
    @ApiModelProperty(value = "折扣", example = "0.85")
    private BigDecimal discountRate;
    
    @ApiModelProperty(value = "有效天数", example = "30")
    private Integer validTime;
    
    @ApiModelProperty(value = "是否推荐", example = "1")
    private Integer isRecommend;
    
    @ApiModelProperty(value = "是否删除", example = "0")
    private Boolean isDelete;
    
    @ApiModelProperty(value = "水量（袋）", example = "10")
    private Integer waterVolume;
    
    @ApiModelProperty(value = "创建时间", example = "2023-01-01 12:00:00")
    private Date createTime;
    
    @ApiModelProperty(value = "更新时间", example = "2023-01-01 12:00:00")
    private Date updateTime;
}